<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>添加用户</title>
<script type="text/javascript">
    function addUser(){
        var form = document.forms[0];
        form.action = "<%=basePath%>user/getAllUser";
        form.method = "post";
        form.submit();
    }
    var users="${userList}";
</script>

</head>

<body>
    <h1>alluser</h1>
    <form action="" name="userForm">
        姓名：<input type="text" name="userName"> 年龄：<input type="text"
            name="age"> <input type="button" value="添加"
            onclick="getAllUser()">
    </form>
</body>
</html>